/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 实体类
 * @author Blade
 * @since 2023-04-12
 */
@Data
@TableName("blade_protocol_analysis")
@ApiModel(value = "ProtocolAnalysis对象", description = "ProtocolAnalysis对象")
public class ProtocolAnalysis {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 产品id
	 */
	@ApiModelProperty(value = "产品id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long productId;
	/** 1-send 2-rec */
	@ApiModelProperty(value = "字典")
	private Integer direction;
	/**
	 * 属性名称
	 */
	@ApiModelProperty(value = "属性名称")
	private String propertyName;
	/**
	 * 属性值
	 */
	@ApiModelProperty(value = "属性值")
	private String propertyValue;
	/**
	 * 匹配模型
	 */
	@ApiModelProperty(value = "字典")
	private Integer matchingMode;
	/**
	 * 匹配值
	 */
	@ApiModelProperty(value = "匹配值")
	private String matchingValue;
	/** 匹配发送值类型 */
	@ApiModelProperty(value = "匹配发送值类型 字典")
	private Integer matchingType;
	/**
	 * 详情描述
	 */
	@ApiModelProperty(value = "详情描述")
	private String detail;
	/** 如果为HTTP则需写完整URL MQTT就订阅的后缀 */
	private String url;
	/** 更新时间 */
	private String updateTime;
	/** 物模型 */
	private Integer deviceModel;


}
